package com.zushiye.order.service;

import com.zushiye.order.mapper.UserInfoMapper;
import com.zushiye.order.model.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserInfoService {

    @Autowired(required = false)
    private UserInfoMapper userInfoMapper;

    public UserInfo getUser(String user_name) {
        return userInfoMapper.getUser(user_name);
    }

    public void insert(UserInfo info) {
         userInfoMapper.insert(info);
    }

    public int getUserCount(String user_name) {
        return userInfoMapper.getUserCount(user_name);
    }

    public int deleteUser(String user_name) {
        return userInfoMapper.deleteUser(user_name);
    }






}
